package com.company.project.common.enums;

public enum RestCode {

    CODE_200("200", "成功"),
    CODE_400("400", "参数错误"),
    CODE_401("401", "用户认证失败"),
    CODE_403("403", "服务器不处理"),
    CODE_500("500", "服务器错误");

    private String code;
    private String desc;

    private RestCode(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}